package com.cat.state.after;

/**
 * @author cat
 * @version 2025/5/27 14:49
 * @description
 * @since JDK17
 */

public class StoppingState extends LiftState {
    @Override
    public void open() {
        super.context.setLiftState(Context.openingState);
        super.context.liftState.open();
    }

    @Override
    public void close() {
    }

    @Override
    public void run() {
        super.context.setLiftState(Context.runningState);
        super.context.liftState.run();
    }

    @Override
    public void stop() {
        System.out.println("电梯停止了...");
    }
}
